/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package healthcaresystem;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Veho
 */
public abstract class ADBService {
   protected Connection conn=null;

    public ADBService() {
       try {
           this.conn = C3P0DataSource.getInstance().ds.getConnection();
       } catch (SQLException ex) {
           Logger.getLogger(ADBService.class.getName()).log(Level.SEVERE, null, ex);
       }
    }
}
